
# NOTE: packaging is strongly coupled to the github tarball URL and naming scheme
GITHUB_REPO_NAME='loopidity'

MINOR_REVISION_TAG=$(git tag --list --merged | grep -G '^v[0-9]*\.[0-9]*$' | tail -n1)
REVISION_TAGS=$(git tag --list | grep -G '^v[0-9]*\.[0-9]*\.[0-9].*$')
[ "$(ps -p $PPID -o command= | grep '\-\-amend')" ] && INCREMENT_REVISION=0 || INCREMENT_REVISION=1
N_REVISIONS_AHEAD=$(git rev-list $MINOR_REVISION_TAG..HEAD --count)

GIT_USER=$(git config user.name)
GPG_KEY=$(git config user.signingkey)
[ "$GIT_USER" ] || (echo "git config user.name - not set"       ; exit 1)
[ "$GPG_KEY"  ] || (echo "git config user.signingkey - not set" ; exit 1)
